import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/homepage/Home'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Login from '@/components/homepage/Login'
import Signin from '@/components/homepage/Signin'
import index from '@/components/homepage/Index'
import Monitiring from '@/components/conference/Monitiring'

Vue.use(ElementUI)
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index/home'
    },
    {
      path: '/index',
      component: index,
      children: [
        {
          path: 'login',
          component: Login
        },
        {
          path: 'signin',
          component: Signin
        },
        {
          path: 'home',
          component: Home
        },
        {
          path: 'monitiring',
          component: Monitiring
        }
      ]
    }
  ]
})
